<?php
include('mainfile.php');

header('Cache-Control: max-age=2592000, public'); 
header('Expires-Active: On'); 
header('Expires: Fri, 1 Jan 2500 01:01:01 GMT'); 
header('Pragma:'); 
header('Content-type: text/css');

ob_start('ob_gzhandler');
 
if(is_array($_SESSION['CSSSources'])) foreach($_SESSION['CSSSources'] as $source) echo file_get_contents($source);
if(is_array($_SESSION['CSSStyles'])) foreach($_SESSION['CSSStyles'] as $style) echo htmlspecialchars_decode($style, ENT_QUOTES);

$_SESSION['CSSSources'] = array();
$_SESSION['CSSStyles'] =  array();
?>